﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ShowVideoFormula.ascx.vb" Inherits="Control_WhatCookToDay_ShowVideoFormula" %>
<div style="float: left; width: 100%">
    <div id="divEmbededVideo" style="width: 500px; height: 400px" runat="server">
        <!-- START OF THE PLAYER EMBEDDING TO COPY-PASTE -->
          <div id="divVideo" ></div>
<script type="text/javascript" >
        jwplayer('divVideo').setup({
                    flashplayer: "<%=PlayerUrl() %>",
                    width: "500",
                    height: "250",
                    file: "<%= FileUrl() %>",
                    image: "<%= ImageUrl() %>",
                    repeat:         'none',
                    autoplay:       'false',
                    displayclick: 'none',
                    skin: ' <%=ResolveUrl("~/jwplayer/bluemetal/bluemetal.xml")%>'
                    });
                   </script>
   
    </div>
    
    
    <div id="divFileYoutube" runat="server" visible="false">
        <object width='220' height='190'>
            <param name='movie' value='http://www.youtube.com/v/<%=FileUrl() %>' />
            <param name='allowFullScreen' value='true' />
            <param name='allowscriptaccess' value='always' />
            <embed src='http://www.youtube.com/v/<%=FileUrl() %>' type='application/x-shockwave-flash'
                allowscriptaccess='always' allowfullscreen='true' wmode="opaque" width='500'
                height='400' />
        </object>
    </div>
    <div style="display:none">
        <asp:HiddenField ID = "hidID" Value="0" runat="server" /> 
    </div>
</div>